home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
1997.ZIP
/
SCNCOD22.ARC
/
SCANCODE.DOC
< prev
next >
Wrap
Text File
|
1988-01-27
|
3KB
|
70 lines
S C A N C O D E
A Scan Code Display Program
Version 2.2
28 December 1987
SCANCODE allows you to see the codes that are sent to the computer
from the keyboard as the keys are pressed and released. The codes
are displayed in hexadecimal in the lower window and are converted
by this program and displayed as ASCII in the upper window. The
BIOS is not used for the ASCII display, so if it is wrong, blame
this program, not the BIOS.
Pressing the ESC key activates a one line menu in the middle of the
display. You are allowed to toggle the keyboard microprocessor
scan code translation on or off (if you have an AT or compatible),
clear both of the display windows, toggle keystroke capture mode or
exit to DOS. If you don't want to do any of those things, press the
Enter key.
A word of explanation is necessary about the 8042 toggle function.
Normally, an AT keyboard sends AT scan codes to the computer. The
8042 keyboard microprocessor translates these scan codes into PC
scan codes and sends them to whoever needs them (normally the BIOS,
but in our case, the SCANCODE program). In order to see the real
scan codes coming from the keyboard, we must turn off the 8042
translation. At the same time, the ASCII display is also disabled,
as it will not be the same as for PC scan codes. Note that
depression of any key with an associated LED will not result in the
LED turning on, as the BIOS (who ultimately gets what comes from the
keyboard) can't recognize AT scan codes. In summary, you can verify
the AT scan codes, but nothing else.
No matter what mode you leave the 8042 in when you exit the program,
SCANCODE will set translation on.
Capture mode is a method of capturing keystrokes for later analysis.
When it is on, all scan codes are saved in a file called
CAPTURE.DTA. If the file already exists, it will be appended to,
otherwise it will be created and then appended to.
SCANCODE consists of four executable file; GETSCANS.COM,
RESETINT.COM, SCANCODE.COM and SCNCODES.BAT. ALWAYS use the
SCNCODES batch file to run SCANCODE, as the routine GETSCANS must be
present before the program will work, and the routine RESETINT must
be run to remove GETSCANS.
DO NOT RUN THIS PROGRAM WITH ANY RAM-RESIDENT SOFTWARE such as
SuperKey, as it will hang up the computer. When GETSCANS is
running, CTL-ALT-DEL will no longer reset the computer.
SCANCODE is a Shareware program, which is an attempt to provide good
software at a low cost. You are free to copy the program for all
your friends, but if you find yourself using it on a regular basis,
we ask that you make an $8 contribution to:
Michael Burton Software
15540 Boot Hill Rd.
Hayden Lake, ID 83835
You will receive the latest update of SCANCODE and will be placed on
our mailing list. If you have any questions about SCANCODE, call
(208)772-9347 after 6 p.m. Pacific time.